const Service = require("egg").Service;

class UserService extends Service {
  async list() {
    const user = await this.app.mysql.select("user");
   return user;
  }
  async oneUser() {
    const user = await this.app.mysql.get('user', {id: 10});
    return user;
  }
}

module.exports = UserService;
